<?php
/**
 * Created by PhpStorm.
 * User: nfangxu
 * Date: 2019/1/17
 * Time: 18:02
 */

namespace App\Admin;


use App\Models\Product;

class Tools
{
    public static function price($prices)
    {
        $return = [];
        foreach ($prices as $k => $price) {
            $tmp = Product::PRICE[$k] . $price;
            $return[] = "<span class='label label-success'>{$tmp}</span>";
        }

        return join('&nbsp;', $return);
    }
}